SET(LIBMMOSDK_SRC reader_writer_lock.cc)

SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -O0 -Wall -Werror")
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2 -Wall -Werror")

ADD_DEFINITIONS(-D_GLIBCXX_USE_NANOSLEEP -D_GLIBCXX_USE_SCHED_YIELD)

ADD_LIBRARY(mmosdk SHARED ${LIBMMOSDK_SRC})
TARGET_LINK_LIBRARIES(mmosdk stdc++)
